package com.sky;

import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@SpringBootTest
@Slf4j
public class MyTask {
    @Test
    @Scheduled(cron = "0/5 * * * * ?")
    public void test() {
//        System.out.println("test");
        log.info("test");
    }
}
